import request from '@/utils/request'

export function getdepartment() {
  return request({
    url: '/company/department'
  })
}

export function adddepartment() {
  return request({
    url: '/company/department',
    method: 'post'
  })
}

// 删除部门函数
export function deldepartment(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}
